home *** CD-ROM | disk | FTP | other *** search
/ Workbench Design / WB Collection.iso / workbench werkzeuge / cpu tools / cpuload / readme < prev    next >
Text File  |  1996-04-07  |  2KB  |  49 lines

  1. This code is based on Idle Led V 2.0 written by Lindsay Meek. Instead of
  2. controlling the LED I added a task which reads the free cpu-time ten times
  3. per second and draw the mean-value in steps of one second as history bars
  4. in a small window. It aborts on CTRL_D signal because the code crashes
  5. on CTRL_C when compiled with GNU-C. For that reason the CTRL_C handling
  6. is switched off. If you are using Aztec-C, you may erase the line
  7.  
  8. signal(SIGINT,SIG_IGN);
  9.  
  10. and use CTRL_C if you wish to do so.
  11.  
  12. This program is very beta ! On Aztec-C (at least) it produces enforcer-hits.
  13. Also, the calibration seems to work not ok as Aztec binary shows more
  14. free cpu time then the Gnu output.
  15.  
  16. To save double-operations, I make two unsigned bit-shifts (<<,>>). This
  17. leads to trouble if your machine is a 1000000 times faster than a
  18. A4000/030. I emphasize that this is of major interest if one will use
  19. the code in AD 2100 on a cheap pocket calculator ;-).
  20.  
  21. Source and binary are freeware. Binary was compiled with Gnu-C 2.6.1 -O3
  22. w/o ixemul.library and any math library or fpu.
  23.  
  24. The code is very fast on A2000/ECS/030/25/2.0 and A4000/030/25/3.0 and I think
  25. it is also save. No guru visits me. It should also be useful on 68k machines.
  26.  
  27. If you find bugs or have ideas to improve the code, then let me hear.
  28. Otherwise this version will be the last one, because it runs fine on my
  29. A4000/030 3.0 and I don't have to much time to maintain the code for longer.
  30.  
  31. Use CPULoad to find ghost tasks eating up cpu cycles, busy waits in programs
  32. with low priority (look what VChess does), enjoy that WBTetris needs less
  33. cycles than mouse movement, simply know what your software is doing to your
  34. cpu.
  35.  
  36. The only known problem occurs when a process does a Forbit() for longer (try
  37. Artillerus or Charr and then erase it from your HD). If that happens, kill
  38. (ARTM, Xoper, etc.) the IRQ server, task, process and finally the window. 
  39.  
  40. Send mods, bugs (I prefer reports like 'there could be a timing problem on my A...'
  41. rather then 'it dosn't work on my Amiga'), requests, news on amiga, games to
  42.  
  43. thradtke@nereid.rz.uni-osnabrueck.de
  44.  
  45. bye, __ ___
  46.     /  /  / 
  47.       /
  48.      / homas
  49.